/* 
 * Copyright 2011 kOSMik.
 * This file is part of kOSMik.
 * 
 * kOSMik is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * kOSMik is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with kOSMik.  If not, see <http://www.gnu.org/licenses/>.
 *  
 * kOSMik:
 * Open Street Map - Editor.
 * http://code.google.com/p/swp-dv-ws2010-osm-2/
 */

package de.fuberlin.kosmik.gui.view;

/**
 * @author user The ServiceLocationListener is an interface used by MapView and
 *         OsMapView to get new coordinates.
 */
public interface ServiceLocationListener {

	/**
	 * OnLocationUpdate inserts a new Point to the MapView - coordinate - list.
	 * 
	 * @param longitude = Longitude of the new coordinate.
	 * @param latitude = Latitude of the new coordinate.
	 */
	void onLocationUpdate(double longitude, double latitude);

	/**
	 * OnPOI inserts a new POI to the MapView - POI - List.
	 * 
	 * @param longitude = Longitude of the new POI.
	 * @param latitude = Latitude of the new POI.
	 * @param tag = Which kind of POI?
	 */
	void onPOI(double longitude, double latitude, String tag);

	/**
	 * Tells the MapView to start a way.
	 */
	void onStartWay();

	/**
	 * Tells the MapView to stop a way.
	 */
	void onStopWay();

	/**
	 * Tells the MapView to start an area.
	 */
	void onStartArea();

	/**
	 * Tells the MapView to stop an area.
	 */
	void onStopArea();

}
